const expect=require('chai').expect;

describe('respondTo',()=>{
    var Klass=function(){};
    Klass.prototype.bar=function(){};
    var klass=new Klass();

    it('prototype',()=>{
        expect(Klass).respondTo('bar');
    });

    it('local',()=>{
        expect(klass).respondTo('bar');
    });

    it('object',()=>{
        var obj={show(){}}
        expect(obj).respondTo('show');
    });

});